package gulimall.controller;

import lombok.Data;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.io.Serializable;

/**
 * @author HLF
 * @date 2022/8/8 10:53
 */
@RestController
public class CurlController {

    @PostMapping("/testCurl")
    public Object testCurlPost(@RequestBody Student student) {
        return student;
    }
}

@Data
class Student implements Serializable {
    private String name;
    private Integer age;
}
